package com.tjetc.controller;

import com.github.pagehelper.PageInfo;
import com.tjetc.entity.ActivityType;
import com.tjetc.entity.Tribe;
import com.tjetc.service.IActivityTypeService;
import com.tjetc.service.ITribeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/activityType")
public class ActivityTypeController {
    @Autowired
    private IActivityTypeService activityTypeService;


    @RequestMapping("/list")
    public PageInfo<ActivityType> list(@RequestParam(defaultValue = "1") Integer curPage,
                                       @RequestParam(defaultValue = "10") Integer pageSize,
                                       @RequestParam(defaultValue = "" ) String name){
        return  activityTypeService.lists(curPage,pageSize,name);

    }

}
